package com.neo.sk.common

import com.typesafe.config.ConfigFactory
import org.slf4j.LoggerFactory


/**
 * User: Huangshanqi
 * Date: 2015/6/2
 * Time: 15:22
 */
object AppSettings {
  private[this] val log = LoggerFactory.getLogger(this.getClass)

  val config =  ConfigFactory.load()

  //slick db
  val slickConfig =config.getConfig("slick.db")
  val slickUrl = slickConfig.getString("url")
  val slickUser = slickConfig.getString("user")
  val slickPassword = slickConfig.getString("password")
  val slickMaximumPoolSize = slickConfig.getInt("maximumPoolSize")
  val slickConnectTimeout = slickConfig.getInt("connectTimeout")
  val slickIdleTimeout = slickConfig.getInt("idleTimeout")
  val slickMaxLifetime = slickConfig.getInt("maxLifetime")

}

